package com.leisurexi.concurrency.future;

import lombok.extern.slf4j.Slf4j;

/**
 * 回调函数实现类
 *
 * @author: leisurexi
 * @date: 2021-05-09 13:52
 */
@Slf4j
public class TaskHandler implements TaskCallable<TaskResult> {

    @Override
    public TaskResult callable(TaskResult taskResult) {
        log.info(taskResult.toString());
        return taskResult;
    }

}
